﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Signage01
{
    [Serializable]
    public class Campaign
    {
        private List<Timeline> listTimeline;

        public List<Timeline> ListTimeline
        {
            get { return listTimeline; }
            set { listTimeline = value; }
        }
        
        private int _lastTimelineIndex;
        public int LastTimelineIndex
        {
            get { return _lastTimelineIndex; }
            set { _lastTimelineIndex = value; }
        }

        private Screen _screen;
        public Screen Screen
        {
            get { return _screen; }
            set { _screen = value; }
        }


        private String _name;
        public String Name
        {
            get { return _name; }
            set { _name = value; }
        }

        public Campaign()
        {
            listTimeline = new List<Timeline>();
            this.LastTimelineIndex = 0;
        }


        public Campaign(Screen screen,String name):this()
        {
            this.Screen = screen;
            this.Name = name;
        }

        public void addTimeline(Timeline timeline)
        {
            listTimeline.Add(timeline);
        }

        public List<Timeline> getTimeline()
        {
            return listTimeline;
        }

    }
}
